export default [
  {
    path: '/user',
    layout: false,
    routes: [
      { name: '登录', path: '/user/login', component: './user/Login' },
      { name: '注册', path: '/user/register', component: './user/Register' },
      { component: './404' },
    ],
  },
  { path: '/add_chart', name: '智能分析', icon: 'lineChart', component: './AddChart' },
  {
    path: '/add_chart_async',
    name: '智能分析(线程池异步)',
    icon: 'lineChart',
    component: './AddChartAsync',
  },
  { path: '/add_chart_mq', name: '智能分析(mq异步)', icon: 'lineChart', component: './AddChartMq' },
  { path: '/my_chart', name: '我的图表', icon: 'form', component: './MyChart' },
  {
    path: '/admin',
    name: '管理页',
    icon: 'crown',
    access: 'canAdmin',
    routes: [{ component: './404' }],
  },
  { path: '/', redirect: '/my_chart' },
  { component: './404' },
];
